package main

import(
	"fmt"
)
func main(){
	var num1 float32 = 3.14
	fmt.Println(num1)
	var num2 float32 = -3.14
	fmt.Println(num2)
	//科学计数法，E不区分大小写
	var num3 float32 = 314E-2
	fmt.Println(num3)
	var num4 float64 = 314e+2
	fmt.Println(num4) 

	//精度有损失，建议使用float64.默认也是
	var num5 float32 = 134.222260009
	fmt.Println(num5)
	var num6 float64 = 134.222260009
	fmt.Println(num6)
	var num7 = 3.14
	fmt.Printf("num7默认类型： %T",num7)	
}